<?php
return array(
    'controllers' => array(
        'invokables' => array(
            'Users\Controller\Users' => 'Users\Controller\UsersController',
        ),
    ),
    // The following section is new and should be added to your file
    'router' => array(
        'routes' => array(
            'users' => array(
                'type'    => 'segment',
                'options' => array(
                    'route'    => '/users[/:action][/:id]',
                    'constraints' => array(
                        'action' => '[a-zA-Z][a-zA-Z0-9_-]*',
                        'id'     => '[0-9]+',
                    ),
                    'defaults' => array(
                        'controller' => 'Users\Controller\Users',
                        'action'     => 'index',
                    ),
                ),
            ),
			'cronusernotifications' => array(
				'type'    => 'segment',
				'options' => array(
					'route'    => '/cronusernotifications[/:id]',
					'constraints' => array(	
						'action' => '[a-zA-Z][a-zA-Z0-9_-]*',
						'id'     => '[a-zA-Z][a-zA-Z0-9_-]*',
					),
					'defaults' => array(
						'controller' => 'Users\Controller\Users',
						'action'     => 'cronusernotifications',
					),
				),
			),	
			'newpassword' => array(
				'type'    => 'segment',
				'options' => array(
					'route'    => '/newpassword[/:id]',
					'constraints' => array(	
						'action' => '[a-zA-Z][a-zA-Z0-9_-]*',
						'id'     => '[a-zA-Z][a-zA-Z0-9_-]*',
					),
					'defaults' => array(
						'controller' => 'Users\Controller\Users',
						'action'     => 'updatepassword',
					),
				),
			),
			'delete-testimony' => array(
				'type'    => 'segment',
				'options' => array(
					'route'    => '/delete-testimony[/:id]',
					'constraints' => array(	
						'action' => '[a-zA-Z][a-zA-Z0-9_-]*',
						'id'     => '[a-zA-Z][a-zA-Z0-9_-]*',
					),
					'defaults' => array(
						'controller' => 'Users\Controller\Users',
						'action'     => 'deleteTestimony',
					),
				),
			),
			'logout' => array(
				'type'    => 'segment',
				'options' => array(
					'route'    => '/logout[/:id]',
					'constraints' => array(	
						'action' => '[a-zA-Z][a-zA-Z0-9_-]*',
						'id'     => '[a-zA-Z][a-zA-Z0-9_-]*',
					),
					'defaults' => array(
						'controller' => 'Users\Controller\Users',
						'action'     => 'logout',
					),
				),
			),
			'forgetpasssword' => array(
				'type'    => 'segment',
				'options' => array(
					'route'    => '/forgetpasssword[/:id]',
					'constraints' => array(	
						'action' => '[a-zA-Z][a-zA-Z0-9_-]*',
						'id'     => '[a-zA-Z][a-zA-Z0-9_-]*',
					),
					'defaults' => array(
						'controller' => 'Users\Controller\Users',
						'action'     => 'forgetpasssword',
					),
				),
			),
			'send-password-reset-url' => array(
				'type' => 'segment',
				'options' => array(
					'route'    => '/send-password-reset-url',
					'constraints' => array(
						'action' => '[a-zA-Z][a-zA-Z0-9_-]*',
						'id'     => '[a-zA-Z0-9][a-zA-Z0-9_-]*',
					),
					'defaults' => array(
						'controller' => 'ZfcAdmin\Controller\AdminController',
						'action'     => 'sendPasswordResetUrl',
					),
				),
			),
			'register' => array(
				'type'    => 'segment',
				'options' => array(
					'route'    => '/register[/:id]',
					'constraints' => array(	
						'action' => '[a-zA-Z][a-zA-Z0-9_-]*',
						'id'     => '[a-zA-Z][a-zA-Z0-9_-]*',
					),
					'defaults' => array(
						'controller' => 'Users\Controller\Users',
						'action'     => 'register',
					),
				),
			),
			'change-password' => array(
				'type' => 'segment',
				'options' => array(
					'route'    => '/change-password',
					'constraints' => array(
						'action' => '[a-zA-Z][a-zA-Z0-9_-]*',
						'id'     => '[a-zA-Z0-9][a-zA-Z0-9_-]*',
					),
						'defaults' => array(
						'controller' => 'Users\Controller\Users',
						'action'     => 'changePassword',
					),
				),
			),
			'check-password' => array(
				'type' => 'segment',
				'options' => array(
					'route'    => '/check-password',
					'constraints' => array(
						'action' => '[a-zA-Z][a-zA-Z0-9_-]*',
						'id'     => '[a-zA-Z0-9][a-zA-Z0-9_-]*',
					),
						'defaults' => array(
						'controller' => 'Users\Controller\Users',
						'action'     => 'checkPassword',
					),
				),
			),
			'testimonial' => array(
				'type'    => 'segment',
				'options' => array(
					'route'    => '/testimonial[/:id]',
					'constraints' => array(	
						'action' => '[a-zA-Z][a-zA-Z0-9_-]*',
						'id'     => '[a-zA-Z][a-zA-Z0-9_-]*',
					),
					'defaults' => array(
						'controller' => 'Users\Controller\Users',
						'action'     => 'testimonial',
					),
				),
			),
			'edit-user' => array(
				'type'    => 'segment',
				'options' => array(
					'route'    => '/edit-user[/:id]',
					'constraints' => array(	
						'action' => '[a-zA-Z][a-zA-Z0-9_-]*',
						'id'     => '[a-zA-Z][a-zA-Z0-9_-]*',
					),
					'defaults' => array(
						'controller' => 'Users\Controller\Users',
						'action'     => 'editUser',
					),
				),
			),
			'ad-posting' => array(
				'type'    => 'segment',
				'options' => array(
					'route'    => '/ad-posting[/:id]',
					'constraints' => array(	
						'action' => '[a-zA-Z][a-zA-Z0-9_-]*',
						'id'     => '[a-zA-Z][a-zA-Z0-9_-]*',
					),
					'defaults' => array(
						'controller' => 'Users\Controller\Users',
						'action'     => 'adPosting',
					),
				),
			),
			'frechensee-ad-posting' => array(
				'type'    => 'segment',
				'options' => array(
					'route'    => '/frechensee-ad-posting[/:id]',
					'constraints' => array(	
						'action' => '[a-zA-Z][a-zA-Z0-9_-]*',
						'id'     => '[a-zA-Z][a-zA-Z0-9_-]*',
					),
					'defaults' => array(
						'controller' => 'Users\Controller\Users',
						'action'     => 'frechenseeAdPosting',
					),
				),
			),
			'confirm-order' => array(
				'type'    => 'segment',
				'options' => array(
					'route'    => '/confirm-order[/:id]',
					'constraints' => array(	
						'action' => '[a-zA-Z][a-zA-Z0-9_-]*',
						'id'     => '[a-zA-Z][a-zA-Z0-9_-]*',
					),
					'defaults' => array(
						'controller' => 'Users\Controller\Users',
						'action'     => 'confirmOrder',
					),
				),
			),
			'notifications' => array(
				'type'    => 'segment',
				'options' => array(
					'route'    => '/notifications[/:id]',
					'constraints' => array(	
						'action' => '[a-zA-Z][a-zA-Z0-9_-]*',
						'id'     => '[a-zA-Z][a-zA-Z0-9_-]*',
					),
					'defaults' => array(
						'controller' => 'Users\Controller\Users',
						'action'     => 'notifications',
					),
				),
			),
			'notificationsCount' => array(
				'type'    => 'segment',
				'options' => array(
					'route'    => '/notificationsCount[/:id]',
					'constraints' => array(	
						'action' => '[a-zA-Z][a-zA-Z0-9_-]*',
						'id'     => '[a-zA-Z][a-zA-Z0-9_-]*',
					),
					'defaults' => array(
						'controller' => 'Users\Controller\Users',
						'action'     => 'notificationsCountAction',
					),
				),
			),
			'notificationsUpdate' => array(
				'type'    => 'segment',
				'options' => array(
					'route'    => '/notificationsUpdate[/:id]',
					'constraints' => array(	
						'action' => '[a-zA-Z][a-zA-Z0-9_-]*',
						'id'     => '[a-zA-Z][a-zA-Z0-9_-]*',
					),
					'defaults' => array(
						'controller' => 'Users\Controller\Users',
						'action'     => 'notificationsUpdateAction',
					),
				),
			),
			'expired' => array(
				'type'    => 'segment',
				'options' => array(
					'route'    => '/expired[/:id]',
					'constraints' => array(	
						'action' => '[a-zA-Z][a-zA-Z0-9_-]*',
						'id'     => '[a-zA-Z][a-zA-Z0-9_-]*',
					),
					'defaults' => array(
						'controller' => 'Users\Controller\Users',
						'action'     => 'expiredAction',
					),
				),
			),
			'userorderview' => array(
				'type'    => 'segment',
				'options' => array(
					'route'    => '/userorderview[/:id]',
					'constraints' => array(	
						'action' => '[a-zA-Z][a-zA-Z0-9_-]*',
						'id'     => '[a-zA-Z][a-zA-Z0-9_-]*',
					),
					'defaults' => array(
						'controller' => 'Users\Controller\Users',
						'action'     => 'userorderview',
					),
				),
			),
			'order-view' => array(
				'type'    => 'segment',
				'options' => array(
					'route'    => '/order-view[/:id]',
					'constraints' => array(	
						'action' => '[a-zA-Z][a-zA-Z0-9_-]*',
						'id'     => '[a-zA-Z][a-zA-Z0-9_-]*',
					),
					'defaults' => array(
						'controller' => 'Users\Controller\Users',
						'action'     => 'orderView',
					),
				),
			),
			'offline-order' => array(
				'type'    => 'segment',
				'options' => array(
					'route'    => '/offline-order[/:id]',
					'constraints' => array(	
						'action' => '[a-zA-Z][a-zA-Z0-9_-]*',
						'id'     => '[a-zA-Z][a-zA-Z0-9_-]*',
					),
					'defaults' => array(
						'controller' => 'Users\Controller\Users',
						'action'     => 'offlineOrder',
					),
				),
			),
			'edit-order' => array(
				'type'    => 'segment',
				'options' => array(
					'route'    => '/edit-order[/:id]',
					'constraints' => array(	
						'action' => '[a-zA-Z][a-zA-Z0-9_-]*',
						'id'     => '[a-zA-Z][a-zA-Z0-9_-]*',
					),
					'defaults' => array(
						'controller' => 'Users\Controller\Users',
						'action'     => 'editOrder',
					),
				),
			),
			'subscriber' => array(
				'type'    => 'segment',
				'options' => array(
					'route'    => '/subscriber[/:id]',
					'constraints' => array(	
						'action' => '[a-zA-Z][a-zA-Z0-9_-]*',
						'id'     => '[a-zA-Z][a-zA-Z0-9_-]*',
					),
					'defaults' => array(
						'controller' => 'Users\Controller\Users',
						'action'     => 'subscriber',
					),
				),
			),
			'check-subscriber' => array(
				'type'    => 'segment',
				'options' => array(
					'route'    => '/check-subscriber[/:id]',
					'constraints' => array(	
						'action' => '[a-zA-Z][a-zA-Z0-9_-]*',
						'id'     => '[a-zA-Z][a-zA-Z0-9_-]*',
					),
					'defaults' => array(
						'controller' => 'Users\Controller\Users',
						'action'     => 'checkSubscriber',
					),
				),
			),
				'cronsendnewsletter' => array(
					'type'    => 'segment',
					'options' => array(
						'route'    => '/cronsendnewsletter[/:id]',
						'constraints' => array(	
							'action' => '[a-zA-Z][a-zA-Z0-9_-]*',
							'id'     => '[a-zA-Z][a-zA-Z0-9_-]*',
						),
						'defaults' => array(
							'controller' => 'Users\Controller\Users',
							'action'     => 'cronsendnewsletter',
						),
					),
				),	
				'unsubscribe' => array(
					'type' => 'segment',
					'options' => array(
						'route'    => '/unsubscribe',
						'constraints' => array(
							'action' => '[a-zA-Z][a-zA-Z0-9_-]*',
							'id'     => '[a-zA-Z0-9][a-zA-Z0-9_-]*',
						),
						'defaults' => array(
							'controller' => 'Users\Controller\Users',
							'action'     => 'unsubscribe',
						),
					),
				)
		),
	),     
    'view_manager' => array(
        'template_path_stack' => array(
            'users' => __DIR__ . '/../view',
        ),
		'strategies' => array(
            'ViewJsonStrategy',
        ),
    ),
	
);
?>